<template>
  <div class="main-page">
    <slot name="header"></slot>
    <main class="main-page__body">
      <slot></slot>
    </main>
    <slot name="footer"></slot>
  </div>
</template>

<style scoped lang="less">
.main-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fafafc;
}

.main-page__body {
  flex: 1;
  overflow: hidden;
}
</style>
